package com.smzd.framework.security.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;
import com.smzd.framework.security.domain.Authority;
import com.smzd.framework.security.mappers.AuthorityMapper;

@Component
public class AuthorityDao extends AbstractDao<Authority> {
    @Autowired
    private AuthorityMapper mapper;

    @Override
    protected IMapper<Authority> getMapper() {
        return mapper;
    }

    public List<Authority> getAuthoritiesByClientAppId(int clientAppId) {
        return mapper.getAuthoritiesByClientAppId(clientAppId);
    }
}
